package project.ccso.top.entity;

import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品信息实体类
 * @author aibinxiao
 * @date 2018年8月23日 上午9:49:47
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommodityInfo {
	private Integer id;// 商品信息ID
	private String name;// 商品名称
	private String detail;// 商品信息详情
	private String headimgUrl;// 商品主图url
	private String imgUrlList;// 商品细节图url集合，以,分隔
	private BigDecimal oriPrice;// 商品原价
	private BigDecimal transferPrice;// 商品转让价
	private Integer quality;// 商品成色(全新，九成新，八成新等等)
	private String location;// 商品所在地(由发布用户的省份和市区组成)
	private String contactWay;// 联系方式
	private Integer tradeWay;// 交易方式(0表示在线交易，1表示线下交易)
	private String issueTime;// 商品信息发布时间
	private String editTime;// 最后编辑时间
	private Integer commendNum;// 点赞数
	private Integer reportStatus;// 举报状态(0表示未被举报，1表示被举报)
	private Integer reportNum;// 被举报次数
	private Integer messagesNum;// 留言数
	private Integer memberId;// 发布者ID
	private Integer shieldStatus;// 屏蔽状态(0表示未被屏蔽，1表示被屏蔽)
	private Integer tradeStatus;// 交易状态
	private String oneCategoryName;// 商品所属一级分类名
	private String twoCategoryName;// 商品所属二级分类名
	private String threeCategoryName;// 商品所属三级分类名
	private Integer oneCategoryId;// 商品所属一级分类ID
	private Integer twoCategoryId;// 商品所属二级分类ID
	private Integer threeCategoryId;// 商品所属三级分类ID
	private Integer provinceId;// 商品所属省份ID
	private Integer cityId;// 商品所属城市ID
	private Integer schoolId;// 商品所属高校ID
	
	public CommodityInfo(String name, String detail, String headimgUrl, String imgUrlList, BigDecimal oriPrice,
			BigDecimal transferPrice, Integer quality, String location, String contactWay, Integer tradeWay,
			Integer memberId, String oneCategoryName, String twoCategoryName, String threeCategoryName,
			Integer oneCategoryId, Integer twoCategoryId, Integer threeCategoryId, Integer provinceId, Integer cityId,
			Integer schoolId) {
		super();
		this.name = name;
		this.detail = detail;
		this.headimgUrl = headimgUrl;
		this.imgUrlList = imgUrlList;
		this.oriPrice = oriPrice;
		this.transferPrice = transferPrice;
		this.quality = quality;
		this.location = location;
		this.contactWay = contactWay;
		this.tradeWay = tradeWay;
		this.memberId = memberId;
		this.oneCategoryName = oneCategoryName;
		this.twoCategoryName = twoCategoryName;
		this.threeCategoryName = threeCategoryName;
		this.oneCategoryId = oneCategoryId;
		this.twoCategoryId = twoCategoryId;
		this.threeCategoryId = threeCategoryId;
		this.provinceId = provinceId;
		this.cityId = cityId;
		this.schoolId = schoolId;
	}
}
